package libtool65;

import libtool65.cmd.Command;
import libtool65.cmd.CommandLineParser;


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		CommandLineParser parser = new CommandLineParser();
		Command command = parser.parse(args);
		if (command != null)
		{
			try {
				command.execute();
			} catch (Exception e) {
				System.err.println("Error executing command "+command);
				e.printStackTrace();
			}
		}
//			Reader reader = new Reader();
//			Module module = null;
//			try {
//				module = reader.read(new FileInputStream(args[0]));
//			} catch (Exception e) {
//				System.err.println("Error reading file "+args[0]);
//				e.printStackTrace();
//			}
//			module.dumpInfo(System.out);
		
	}
}
